﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using Control;

namespace WCF
{
    public class ShowService : IShowService
    {
        private ShowController showCtr;

        public ShowService()
        {
            showCtr = new ShowController();
        }

        public List<Show> GetAllShowsThisDate(DateTime dateTime, bool retriveAssociation)
        {
            return showCtr.GetAllShowsThisDate(dateTime, retriveAssociation);
        }

        public Show FindShow(DateTime dateTimeStart, string cName, bool retriveAssociation)
        {
            return showCtr.FindShow(dateTimeStart, cName, retriveAssociation);
        }

        public Show FindShowWithId(int id, bool retriveAssociation)
        {
            return showCtr.FindShowWithId(id, retriveAssociation);
        }

        public void DeleteShow(DateTime dateTime, string cName)
        {
            showCtr.DeleteShow(dateTime, cName);
        }

        public void CreateShow(string serialNo, string cName, string dateStart, string dateEnd, string pricePerTicket)
        {
            showCtr.CreateShow(serialNo, cName, dateStart, dateEnd, pricePerTicket);
        }

        public List<Show> FindAllShows(bool retrieveAssociation)
        {
            return showCtr.FindAllShows(retrieveAssociation);
        }
    }
}
